***********************************************
REPLICATION CODES FOR:
Antolin-Diaz, Drechsel and Petrella:
"Tracking the Slowdown in Long-Run GDP Growth"
The Review of Economics and Statistics
***********************************************

The results were generated with Matlab version R2015a.

Subfolders:

- Folder 'data' contains different data sets
- Folder 'functions' contains auxiliary matlab functions
- Folder 'output' is the folder which results and figures are saved into

Codes for Figure 1:

- Run_Break_Tests_RealTime.m: 
  > Produces underlying results for Figure 1
  > Loads GDP_vintages.mat from 'data'
  > Saves results as results_Figure1.mat in 'output'

- Produce_Figure1.m:
  > Loads results_Figure1.mat from 'output'
  > Creates Figure 1 and saves pdf in 'output'

Codes for Figure 2:

- Run_DFM.m:
  > Produces underlying results for Figure 2 (panels a, b, c)
  > Loads ADP_baseline.mat from 'data'
  > Saves results as results_Figure2.mat in 'output'

- Produce_Figure2.m:
  > Loads results_Figure2.mat from 'output'
  > Creates Figure 2 (Panels a, b, c) and saves pdfs in 'output'

Codes for Figure 3:

- Produce_Figure3.m:
  > Loads results_Figure3.mat from 'output'
  > Creates Figure 3 (Panels a and b) and saves pdf in 'output'

- Note that these results have been pre-saved since they are not easily 
  reproducable on a standard PC. They correspond to the real-time 
  exercise which we needed to run on various parallelized computers
  over several weeks.

Codes for Table 2:

- Run_DFM_Alternative.m:
  > Produces underlying results for Table 2
  > Loads ADP_extended.mat from 'data'
  > Saves results as results_Table2_xxx.mat in 'output'
    xxx corresponds to the different alternative models 
    (Mariano-Murasawa, Okun, Baseline, Baseline w/o consumption, 
    Extended, Extended w/o consumption)

- Produce_Table2.m:
  > Loads results_Table2_xxx.mat from 'output'
  > Creates Table 2 and prints it to the screen

Codes for Figure 4:

- Run_DFM_Decomposition.m:
  > Produces underlying results for Figure 4 (panels a and b)
  > Loads ADP_baseline.mat from 'data'
  > Saves results as results_Figure4.mat in 'output'

- Produce_Figure4.m:
  > Loads results_Figure4.mat from 'output'
  > Creates Figure 4 (Panels a and b) and saves pdfs in 'output'


Codes for Figure 5:

- Run_DFM_International_xx.m:
  > Produces underlying results for Figure 5 (panels a and b)
  > Loads ADP_international_xx.mat from 'data'
  > Saves results as results_Figure5_xx.mat in 'output'
    xx corresponds to the different countries 
    (Canada, Germany, France, Italy, Japan, UK)

- Produce_Figure5.m:
  > Loads results_Figure5_xx.mat from 'output'
  > Creates Figure 5 (Panels a and b) and saves pdf in 'output'

